public class Main {
    public static void main(String[] args) {
        Ilist mySingleList = new MySingleList();
        mySingleList.addLast(12);
        mySingleList.addLast(23);
        mySingleList.addLast(34);
        mySingleList.addLast(45);
        mySingleList.display();
    }
    public static void main2(String[] args) {
        Ilist mySingleList = new MySingleList();
        mySingleList.addFirst(10);
        mySingleList.addFirst(20);
        mySingleList.addFirst(30);
        mySingleList.addFirst(40);
        mySingleList.display();
    }
    public static void main1(String[] args) {
        MySingleList mySingleList = new MySingleList();
        mySingleList.CreateList();
        System.out.println("=========");
        mySingleList.display();
        System.out.println(mySingleList.size());
        System.out.println(mySingleList.contains(44));
        System.out.println(mySingleList.contains(45));
    }
}
